package com.yonyou.ucf.mdf.app.isvdxq.other.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.iuap.yms.param.BaseEntity;
import com.yonyou.iuap.yms.annotation.*;

/**
 * QualityOrg\PurchaseOrg\SalesOrg
 * functypes	string	否	职能类型, orgunit:组织单元、
 * salesorg:销售组织、purchaseorg:采购组织、inventoryorg:库存组织、
 * factoryorg:工厂组织、financeorg:会计主体、assetsorg:资产组织、
 * taxpayerorg:纳税主体、
 * 职能类型
 * adminorg：人力资源组织;orgunit：组织单元;factoryorg：工厂组织;
 * inventoryorg：库存组织;salesorg：销售组织;assetsorg：资产组织;
 * energyorg：能源组织;researchdeveloporg：研发组织;
 * purchaseorg：采购组织;financeorg：会计主体;safetyorg：安环组织;
 * serviceorg：服务组织;qualityorg：质检组织;
 * taxpayerorg：纳税主体;planorg：计划组织
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@YMSEntity
@YMSTable(tableName = "dxqyy_orgunit")
public class OrgUnitEntity extends BaseEntity {

    private String id;

    private String parent;
    @YMSColumn(name = "parent_name")
    private String parent_name;

    private int dr;

    private int enable;

    private String effectivedate;

    private String pubts;

    private String code;

    private String orgid;

    private Boolean orgtype;

    private String companytype;
    @YMSColumn(name = "companytype_name")
    private String companytype_name;

    private String exchangerate;
    @YMSColumn(name = "exchangerate_name")
    private String exchangerate_name;

    private String accountOrg;

    //列表数据
    private String externalorg;

    private int isdefault;

    private int isbizunit;

    private int level;

    private String path;

    private String creator;

    private String creationtime;

    private String modifier;

    private String modifiedtime;

    private String parentid;

    protected String name;

    protected String shortname;

    protected String description;

    protected String address;
    @YMSColumn(name = "ytenant_id")
    private String tenant_id;

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }


    public Boolean getOrgtype() {
        return orgtype;
    }

    public void setOrgtype(Boolean orgtype) {
        this.orgtype = orgtype;
    }

    public String getTenant_id() {
        return tenant_id;
    }

    public void setTenant_id(String tenant_id) {
        this.tenant_id = tenant_id;
    }

    public String getAccountOrg() {
        return accountOrg;
    }

    public void setAccountOrg(String accountOrg) {
        this.accountOrg = accountOrg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompanytype() {
        return companytype;
    }

    public void setCompanytype(String companytype) {
        this.companytype = companytype;
    }

    public String getCompanytype_name() {
        return companytype_name;
    }

    public void setCompanytype_name(String companytype_name) {
        this.companytype_name = companytype_name;
    }

    public String getExchangerate() {
        return exchangerate;
    }

    public void setExchangerate(String exchangerate) {
        this.exchangerate = exchangerate;
    }

    public String getExchangerate_name() {
        return exchangerate_name;
    }

    public void setExchangerate_name(String exchangerate_name) {
        this.exchangerate_name = exchangerate_name;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getParent_name() {
        return parent_name;
    }

    public void setParent_name(String parent_name) {
        this.parent_name = parent_name;
    }

    public int getDr() {
        return dr;
    }

    public void setDr(int dr) {
        this.dr = dr;
    }

    public int getEnable() {
        return enable;
    }

    public void setEnable(int enable) {
        this.enable = enable;
    }

    public String getEffectivedate() {
        return effectivedate;
    }

    public void setEffectivedate(String effectivedate) {
        this.effectivedate = effectivedate;
    }

    public String getPubts() {
        return pubts;
    }

    public void setPubts(String pubts) {
        this.pubts = pubts;
    }
}
